aboutsummaryrefslogtreecommitdiffstats
path: root/src/app/groups/[groupId]/save-recent-group.tsx
blob: e55d7c8754a0a495490f452f0f42dd8eb5826244 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
'use client'
import {
  RecentGroup,
  saveRecentGroup,
} from '@/app/groups/recent-groups-helpers'
import { useEffect } from 'react'

type Props = {
  group: RecentGroup
}

export function SaveGroupLocally({ group }: Props) {
  useEffect(() => {
    saveRecentGroup(group)
  }, [])

  return null
}